<?php
namespace app\index\model;

use think\Model;

class Heroes extends Model
{

    protected $connection = ['prefix' => 'd_'];

    //重写父类initialize()
    protected function initialize()
    {
        parent::initialize();
        $this->table = 'd_heroes';
    }
}
